import {http} from '@/utils/http'

interface ResponseType extends Promise<any> {
  data?: object;
  code?: number;
  message?: string;
}

/*
通过用户名获取用户id
*/
export const addMobile = (params:any): ResponseType => http.request(
  'post',
  '/station/add',
  { data:params }
)

export const updateMobile = (params:any): ResponseType => http.request(
  'post',
  '/station/add',
  { data:params }
)

export const deleteMobile = (params:any): ResponseType => http.request(
  'post',
  '/station/add',
  { data:params }
)

export const pageMobile = (params:any): ResponseType => http.request(
  'post',
  '/station/add',
  { data:params }
)


export const addMail = (params:any): ResponseType => http.request(
  'post',
  '/station/add',
  { data:params }
)

export const updateMail = (params:any): ResponseType => http.request(
  'post',
  '/station/add',
  { data:params }
)

export const deleteMail = (params:any): ResponseType => http.request(
  'post',
  '/station/add',
  { data:params }
)

export const pageMail = (params:any): ResponseType => http.request(
  'post',
  '/station/add',
  { data:params }
)
